<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h2 class="title">Área de Trabalho</h2>
            <div class="row">
                <div class="nine columns"> 

                    <h:form id="formIndex" enctype="multipart/form-data" rendered="true">

                        <hr/>
                        <p:growl id="messages" showDetail="false" autoUpdate="true"  /> 

                        <div class="container_24 clearfix">
                            <div class="grid_15">
                                <img class="logo-index" src="media/images/atlas.png" style="margin-top: 20% !important"/>
                            </div>

                            <div class="grid_9">
                                <p:panel id="pesquisaRapidaPanel" styleClass="grid_23" header="IPTU - Pesquisa Rápida" >
                                    <p:outputLabel value="CPF/CNPJ" styleClass="grid_11" />
                                    <p:inputText styleClass="grid_12" value="#{managerLayout.cpf}" />
                                    <p:outputLabel value="Inscrição Imóvel" styleClass="grid_11" for="maskinscricao" />
                                    <p:inputMask mask="?**.**.***.****.**" id="maskinscricao" 
                                                 styleClass="grid_12"  value="#{managerLayout.inscricaoImovel}"/>
                                    <p:watermark value="DD.SS.QUADR.LOTE.UN" for="maskinscricao" />
                                    <div class="buttonAction">
                                        <p:commandButton value="Buscar" styleClass="ui-priority-primary" 
                                                         actionListener="#{managerLayout.pesquisarIptu()}"
                                                         process="@this, :formIndex:pesquisaRapidaPanel"
                                                         icon="ui-icon-search" />
                                    </div>
                                </p:panel>

                                <div class="clear"/>
                                <p:panel styleClass="grid_23" header="IPTU - 2º Via" >
                                    <!--                                    <p:outputLabel value="Exercício" styleClass="grid_11" />
                                                                        <div class="grid_12">
                                                                            <p:selectOneMenu >
                                                                                <f:selectItem itemLabel="2013" itemValue="2013"/>
                                                                                <f:selectItem itemLabel="2014" itemValue="2014"/>
                                                                            </p:selectOneMenu>
                                                                        </div>
                                    
                                                                        <div class="clear"/>
                                                                        <p:outputLabel value="Parcela" styleClass="grid_11" />
                                                                        <div class="grid_12">
                                                                            <p:selectOneMenu >
                                                                                <f:selectItem itemLabel="Única" itemValue="Única"/>
                                                                                <f:selectItem itemLabel="Todas" itemValue="Todas"/>
                                                                            </p:selectOneMenu>
                                                                        </div>
                                    
                                                                        <div class="clear"/>-->

                                    <p:outputLabel value="Inscrição Imóvel" styleClass="grid_11" for="maskinscricao2" />
                                    <p:inputMask mask="?**.**.***.****.**" id="maskinscricao2"
                                                 styleClass="grid_12"  value="#{managerLayout.visaoInscricao2}"/>
                                    <p:watermark value="DD.SS.QUADR.LOTE.UN" for="maskinscricao2" />

                                    <div class="buttonAction">
                                        <p:commandButton value="Imprimir" actionListener="#{managerLayout.imprimirSegundaVia()}"
                                                         styleClass="ui-priority-primary" icon="ui-icon-search"
                                                         ajax="false" onclick="this.form.target='_blank'"/>
                                    </div>
                                </p:panel>
                                <div class="clear"/>
                                <p:panel styleClass="grid_23" header="ITBI - Emitir" >
                                    <p:outputLabel value="Inscrição Imóvel" styleClass="grid_11" for="maskinscricao" />
                                    <p:inputMask mask="?**.**.***.****.**" id="maskinscricao3"
                                                 styleClass="grid_12"  value="#{managerLayout.visaoInscricao3}"/>
                                    <p:watermark value="DD.SS.QUADR.LOTE.UN" for="maskinscricao3" />

                                    <div class="buttonAction">
                                        <p:commandButton value="Buscar" actionListener="#{managerLayout.pesquisarItbi()}" styleClass="ui-priority-primary" icon="ui-icon-search" />
                                    </div>
                                </p:panel>

                                <!--                                <div class="buttonAction">
                                                                    <p:commandButton value="anexos" actionListener="{managerUtilitario.atualizarAnexos()}" styleClass="ui-priority-primary" icon="ui-icon-search" />
                                                                </div>-->
                            </div>
                        </div>
                    </h:form>

                </div>  
            </div>
        </ui:define>
    </ui:composition>
</html>
